#ifndef _IAP_BOOT_H_
#define _IAP_BOOT_H_
#include "os/types.h"

#define MAGIC_DUAL_BANK_UPGRADE	0x55667788
#define MAGIC_ENTER_BOOT        0x12344321
#define MAGIC_APP_READY         0xa5667667
#define MAGIC_APP_BOOT_OK       0x5aa5abcd

typedef struct {
	u32 length;
	u32 checksum;
	u32 success;
	u32 address;
} iap_info_t;

typedef struct {
	iap_info_t info;
	u32 dual_addr;
	u32 dual_len;
	u32 dual_checksum;
}dual_iap_info_t;

#endif /*_IAP_BOOT_H_ */

